package com.edu.entiy;

import java.util.List;

public class Page <T>{
    private List<T> pageData;//每一页查出来的数据
    private int pageCount;//一共多少条数据

    public Page() {
    }

    public Page(List<T> pageData, int pageCount) {
        this.pageData = pageData;
        this.pageCount = pageCount;
    }

    public List<T> getPageData() {
        return pageData;
    }

    public void setPageData(List<T> pageData) {
        this.pageData = pageData;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

	@Override
	public String toString() {
		return "Page [pageData=" + pageData + ", pageCount=" + pageCount + "]";
	}
    
}
